using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class CreateInstanceRequest : OrganizationRequest
	{
		public Entity Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (Entity)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public int Count
		{
			get
			{
				if (base.Parameters.Contains("Count"))
				{
					return (int)base.Parameters["Count"];
				}
				return 0;
			}
			set
			{
				base.Parameters["Count"] = value;
			}
		}
		public CreateInstanceRequest()
		{
			base.RequestName = "CreateInstance";
			this.Target = null;
			this.Count = 0;
		}
	}
}
